package util;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;
import java.net.URL;

public class GetHtml {
    public static Document getDocument(String url){
        Document document=null;
        try {
            document = Jsoup.parse(new URL(url), 30000);
        } catch (IOException e) {
            System.out.println("URL地址错误");
        }
        return document;
    }
}
